<?php
/**
 * keywords.php
 *
 * @copyright 2018 OpenCart.cn
 *
 * All Rights Reserved
 * @link http://guangdawangluo.com
 *
 * @author stiffer.chen <chenlin@opencart.cn>
 * @created 2018-07-03 21:33
 * @modified 2018-07-03 21:33
 */

class ModelCommonKeywords extends Model
{
    public function getKeywords($device)
    {
        return $this->db->query("select kd.keyword from " . DB_PREFIX . "keywords_description kd left join " . DB_PREFIX . "keywords k on kd.keywords_id=k.id where k.status=1 and k.device=" . (int)$device . " and kd.language_id=" . (int)$this->config->get('config_language_id') . " order by k.sort_order desc")->rows;
    }
}